<template>
  <div class="app-container">
    <el-form :inline="true">
      <el-form-item :inline="true" label="推送标题" >
        <el-input />
      </el-form-item>

      <el-form-item label="跳转位置" align="center">
        <el-select placeholder="请选择活动区域">
          <el-option label="短信" value="1"></el-option>
          <el-option label="邮件" value="2"></el-option>
          <el-option label="消息" value="3"></el-option>
          <el-option label="推送" value="4"></el-option>
        </el-select>
      </el-form-item>

      <el-form-item label="跳转位置" align="center">
          <div class="block">
    <el-date-picker
      v-model="value1"
      type="daterange"
      range-separator="至"
      start-placeholder="开始日期"
      end-placeholder="结束日期">
    </el-date-picker>
  </div>
      </el-form-item>


      <el-button type="primary">搜索</el-button>
    </el-form>

    <el-table :data="list" :inline="true" border >
      <el-table-column prop="templateTitle" label="标题" align="center">
        
      </el-table-column>

      <el-table-column prop="templateType" label="推送简介" align="center">
        
      </el-table-column>

      <el-table-column prop="templateName" label="跳转位置" align="center">
       
      </el-table-column>
       <el-table-column prop="templateName" label="推送人数" align="center">
       
      </el-table-column>
       <el-table-column prop="templateName" label="创建人员" align="center">
       
      </el-table-column>
       <el-table-column prop="templateName" label="推送时间" align="center">
       
      </el-table-column>
       <el-table-column prop="templateName" label="限制推送情况" align="center">
       
      </el-table-column>

      <el-table-column prop="specification" label="操作" align="center">
        <el-button type="text" @click="openEdit(row)">修改</el-button>
        <el-button type="text" @click="del(row)" style="color:red">删除</el-button>
      </el-table-column>
      <el-table-column prop="specification" label="禁/启用" align="center"></el-table-column>
    </el-table>
   
  </div>
</template>

<script>
export default {
  name: "newspush",
  components: {},
  data() {
    return {
      total:0,
      list: [],
      value1: '',
      
    };
  },
  created() {
    this.getLits();
  },
  methods: {
    getLits() {
     
    },
    //删除
    del(row) {
      confirm("是否删除").then(() => {
        console.log("111");
      });
    },
    //修改
    openEdit(row){
        this.$refs.edit.open(row)
    }
  }
};
</script>

<style lang="stylus" scoped></style>